package com.easyad.manage;

import com.easyad.hibernate.Qyxx;
import com.easyad.hibernate.Qyzw;
import com.easyad.pub.hibernateDatabaseClass;

public class EnterpriseManage {

	
	public static Qyxx getQyxxInstance(String id) {
		
		Qyxx qyxx = (Qyxx) hibernateDatabaseClass.get("from Qyxx t where t.bm = "+id+" and bz = 1");
		return qyxx;
	}
	
	public static Qyzw getAccountInstance(String id) {
		
		Qyzw qyzw = (Qyzw) hibernateDatabaseClass.get("from Qyzw t where t.qybm = "+id);
		return qyzw;
	}
	
	public static Qyxx getQyxxByLogin(String login) {
		
		return 	(Qyxx) hibernateDatabaseClass.get("from Qyxx t where t.gly = '"+login+"' and bz = 1");
	}	
}
